#ifndef KCPICKSIMILARPHOTO_H
#define KCPICKSIMILARPHOTO_H
#include "KvPhotoPickOp.h"
#include <QMap>
#include <QPair>

// 找相似照片
class KcPickSimilarPhoto : public KvPhotoPickOp
{
public:

    using feature_type = std::vector<double>;

    KcPickSimilarPhoto(double similarity) : similarity_(similarity) {}

private:
    void doCalc_(const QString& filePath, void* fileObj) override;

private:
    double similarity_{ 0.9 };
    QMap<feature_type, QPair<QStringList, int>> result_; // 扫描结果，特征值->路径列表
    int groupId_{ 0 };
};

#endif // KCPICKSIMILARPHOTO_H
